 #include<stdio.h>

int main()
{
	//输出规则
	printf("123\n");
	printf("阿伟的年龄是：%f岁\n",5.0);
	printf("%d\n", 18 + 18);
	printf("%s\n", "adada");
	printf("%s,%s,%d\n", "sdada", "aaad", 55);

	//变量
	int a = 10;
	int b = 20;
	int c = a + b;
	int d;
	d = 1;
	printf("%d\n", d);
	printf("%d\n",c);
	printf("%d\n", c+a+b);
	int e = 2, f = 3, g = 4;
	printf("%d,%d,%d\n", e, f, g);
	
	//数据类型 以及 范围
	short a1 = 10000;         //(-32768~32767) 2字节
	int b1 = 100000000;       //(-2147483648~2147483647) 4字节
	long c1 = 100000000L;       //(-2147483648~2147483647) 4字节
	long long d1 = 100000000LL; //19位数 8字节  long型数据后面标注L
	printf("%d\n%d\n%ld\n%lld\n", a1, b1, c1, d1);

	printf("%zu\n%zu\n%zu\n%zu\n",sizeof(short), sizeof(int), sizeof(long), sizeof(long long));//%zu对应sizeof
	printf("%zu\n", sizeof(a1));
	//补充  默认有符号
	short int e1 = 10000;            //短整型
	long int f1 = 100000000L;        //长整型
	long long int g1 = 100000000LL;  //超长整型
		
	//符号情况
	//signed有符号 正数 负数
	//unsigned无符号 正数
	signed short a2 = -100;
	printf("%d\n", a2);
	unsigned short b2 = 65536;//结果重新回到0
	printf("%u\n", b2);  //%u对应unsigned类型数据
	//总结：unsigned short：0 ~ 65535
	//      signed short:-32768 ~ 32767

	return 0;
}
